package ex.com.jm.food.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * 菜单实体层
 * @author zhaojw
 *
 */
@Entity
@Table(name="jm_menu")
public class Menu implements Serializable {

	
	private static final long serialVersionUID = 1L;
	@Id
	@GenericGenerator(name="menu_id",strategy="uuid")
	@GeneratedValue(generator="menu_id")
	@Column(name="menu_id",nullable=false,unique=true,length=32)
	private String menuId;//菜单主键
	@Column(name="menu_name",nullable=false,length=32)
	private String menuName;//菜单名称
	@Column(name="status",nullable=false,length=2)
	private int status;//菜单使用状态菜品状态(0:待审核;1:审核通过;2:审核未通过;)
	@Column(name="menu_price",nullable=false,length=32)
	private Double menuPrice;//菜品价格
	@Column(name="menu_nowPrice",length=32)
	private Double menuNowPrice;//菜品现价
	@Column(name="menu_image",nullable=false,length=32)
	private String menuImageg;//菜品图片路径
	@Column(name="menu_material",nullable=false,length=128)
	private String menuMaterial;//菜品说明,原料，
	@Column(name="menu_practice",nullable=false,length=128)
	private String menuPractice;//菜品做法
	@Column(name="menu_date",length=32)
	private String menuDate;//菜品上传时间
	@Column(name="menu_indate",length=32)
	private String menuInDate;//菜品上架时间
	@Column(name="menu_type",length=32)
	private Integer menuType;//菜品类型(0:普通1:特价菜2:热销;3:新菜品)
	@Column(name="picstyle_id",length=32)
	private String picstyleId;
	@ManyToOne
	@JoinColumn(name="com_id")
	private Company comId;//所属企业
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
	public Double getMenuPrice() {
		return menuPrice;
	}
	public void setMenuPrice(Double menuPrice) {
		this.menuPrice = menuPrice;
	}
	public Double getMenuNowPrice() {
		return menuNowPrice;
	}
	public void setMenuNowPrice(Double menuNowPrice) {
		this.menuNowPrice = menuNowPrice;
	}
	public String getMenuImageg() {
		return menuImageg;
	}
	public void setMenuImageg(String menuImageg) {
		this.menuImageg = menuImageg;
	}
	public String getMenuMaterial() {
		return menuMaterial;
	}
	public void setMenuMaterial(String menuMaterial) {
		this.menuMaterial = menuMaterial;
	}
	public String getMenuPractice() {
		return menuPractice;
	}
	public void setMenuPractice(String menuPractice) {
		this.menuPractice = menuPractice;
	}
	public String getMenuDate() {
		return menuDate;
	}
	public void setMenuDate(String menuDate) {
		this.menuDate = menuDate;
	}
	public String getMenuInDate() {
		return menuInDate;
	}
	public void setMenuInDate(String menuInDate) {
		this.menuInDate = menuInDate;
	}
	public Integer getMenuType() {
		return menuType;
	}
	public void setMenuType(Integer menuType) {
		this.menuType = menuType;
	}
	public Company getComId() {
		return comId;
	}
	public void setComId(Company comId) {
		this.comId = comId;
	}
	public String getPicstyleId() {
		return picstyleId;
	}
	public void setPicstyleId(String picstyleId) {
		this.picstyleId = picstyleId;
	}
}
